/**
 * Copyright (c) 2014-2015, Suredy technology Co., Ltd. All rights reserved.
 * @author ZhangMaoren 
 * @since 2015年12月7日
 * @version 0.1
 */
package com.suredy.app.detection.entity;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.suredy.core.model.BaseModel;


/**
 * @author ZhangMaoren
 *
 */
@Entity
@Table(name = "T_DETECTION_SMELLANDTASTEITEM")
public class SmellandTasteItemEntity extends BaseModel{

	/**
	 * 
	 */
	private static final long serialVersionUID = 680373197386184285L;
	
	@Column(name = "SampleId")
	private String sampleId; //样品编号
	
	@Column(name = "SampleName")
	private String sampleName; //样品名称
	
	@Column(name = "Grade1")
	private Double grade1; //等级
	
	@Column(name = "Strength1")
	private Double strength1; //强度
	
	
	@Column(name = "Grade2")
	private Double grade2; //等级 煮沸后
	
	@Column(name = "Strength2")
	private Double strength2; //强度 煮沸后
	
	@Column(name = "Deprecated", columnDefinition = "int default 0")
	private Integer deprecated ; //废弃的检测结果
	
	@Column(name = "Description")
	private String description; //描述

	@ManyToOne(cascade = CascadeType.REFRESH)
	@JoinColumn(name = "SmellandTaste")
	private SmellandTasteEntity smellAndTaste;

	
	/**
	 * @return the sampleId
	 */
	public String getSampleId() {
		return sampleId;
	}

	
	/**
	 * @param sampleId the sampleId to set
	 */
	public void setSampleId(String sampleId) {
		this.sampleId = sampleId;
	}

	
	/**
	 * @return the sampleName
	 */
	public String getSampleName() {
		return sampleName;
	}

	
	/**
	 * @param sampleName the sampleName to set
	 */
	public void setSampleName(String sampleName) {
		this.sampleName = sampleName;
	}



	
	
	/**
	 * @return the grade1
	 */
	public Double getGrade1() {
		return grade1;
	}


	
	/**
	 * @param grade1 the grade1 to set
	 */
	public void setGrade1(Double grade1) {
		this.grade1 = grade1;
	}


	
	/**
	 * @return the strength1
	 */
	public Double getStrength1() {
		return strength1;
	}


	
	/**
	 * @param strength1 the strength1 to set
	 */
	public void setStrength1(Double strength1) {
		this.strength1 = strength1;
	}


	
	/**
	 * @return the grade2
	 */
	public Double getGrade2() {
		return grade2;
	}


	
	/**
	 * @param grade2 the grade2 to set
	 */
	public void setGrade2(Double grade2) {
		this.grade2 = grade2;
	}


	
	/**
	 * @return the strength2
	 */
	public Double getStrength2() {
		return strength2;
	}


	
	/**
	 * @param strength2 the strength2 to set
	 */
	public void setStrength2(Double strength2) {
		this.strength2 = strength2;
	}


	/**
	 * @return the deprecated
	 */
	public Integer getDeprecated() {
		return deprecated;
	}

	
	/**
	 * @param deprecated the deprecated to set
	 */
	public void setDeprecated(Integer deprecated) {
		this.deprecated = deprecated;
	}

	
	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	
	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	
	/**
	 * @return the smellAndTaste
	 */
	public SmellandTasteEntity getSmellAndTaste() {
		return smellAndTaste;
	}

	
	/**
	 * @param smellAndTaste the smellAndTaste to set
	 */
	public void setSmellAndTaste(SmellandTasteEntity smellAndTaste) {
		this.smellAndTaste = smellAndTaste;
	}
	
	

}
